/*
 * @(#)LogInOutService.java $version 2012. 7. 17.
 *
 */

package com.mywep.myalimi.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mywep.myalimi.model.User;
import com.mywep.myalimi.repository.user.UserRepository;

/**
 * @author 한지웅
 */
@Service
public class UserService {
	@Autowired
	private UserRepository userRepository;

	public User getUserInfo(User user) {
		return userRepository.selectByPrimaryKey(user);
	}

	public void txAddUser(User user) {
		userRepository.insert(user);
	}
}
